package base;

class ObjectCount{
	public static int objCount;
	
	public ObjectCount(){
		objCount++;
	}
}
public class Objects {

	
	public static void main(String[] args) {
          ObjectCount count = new ObjectCount();
          ObjectCount count1 = new ObjectCount();
          ObjectCount count2 = new ObjectCount();
          System.out.println("Count of Objects created is "+ObjectCount.objCount);
          
	}

}
